package is.origo.portlet.events;

import javax.portlet.Event;
import javax.xml.namespace.QName;
import java.io.Serializable;


/**
 * @author vidar.svansson
 */
public class SimpleEvent
        implements Event {

    public SimpleEvent(QName name, Serializable value) {
        this.name = name;
        this.value = value;
    }

    public QName getQName() {
        return name;
    }

    public String getName() {
        return name.getLocalPart();
    }

    public Serializable getValue() {
        return value;
    }

    private QName name;
    private Serializable value;
}